﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;
using System.Diagnostics;

namespace DomainModel
{
    [Table(Name = "main.OrderDetail")]
    public partial class OrderDetail
    {
        #region int? ID

        private int? _id;
        [DebuggerNonUserCode]
        [Column(Storage = "_id", Name = "ID", DbType = "INTEGER", IsPrimaryKey = true, IsDbGenerated = true)]
        public int? ID
        {
            get
            {
                return _id;
            }
            set
            {
                if (value != _id)
                {
                    _id = value;
                }
            }
        }

        #endregion

        #region int Number

        private int _number;
        [DebuggerNonUserCode]
        [Column(Storage = "_number", Name = "Number", DbType = "int", CanBeNull = false)]
        public int Number
        {
            get
            {
                return _number;
            }
            set
            {
                if (value != _number)
                {
                    _number = value;
                }
            }
        }

        #endregion

        #region int OrderID

        private int _orderID;
        [DebuggerNonUserCode]
        [Column(Storage = "_orderID", Name = "OrderID", DbType = "int", CanBeNull = false)]
        public int OrderID
        {
            get
            {
                return _orderID;
            }
            set
            {
                if (value != _orderID)
                {
                    _orderID = value;
                }
            }
        }

        #endregion

        #region int ProductID

        private int _productID;
        [DebuggerNonUserCode]
        [Column(Storage = "_productID", Name = "ProductID", DbType = "int", CanBeNull = false)]
        public int ProductID
        {
            get
            {
                return _productID;
            }
            set
            {
                if (value != _productID)
                {
                    _productID = value;
                }
            }
        }

        #endregion

    }
}
